$(function(){
	$('input[name="title"]').val(data.title);
	um.setContent(data.content);

    var submit=$('.saveContent');
    submit.click(function(event){
        var title=$(':text[name="title"]').val()
        var content=$(':text[name="content"]').val()
		var id=data.id;
        $.post('/oper/update.json',{title:title,content:content,id:id},function(res){
            if(res.code==1){
                location.href="/";
            }else{
                alert('添加失败');
            }
        },'json');
    });
})